// state =>state.singer 简写箭头函数
// getter担任一个代理的功能，以及可以担任一个计算属性的角色
export const singer = state => state.singer

export const playing = state => state.playing

export const fullScreen = state => state.fullScreen

export const playList = state => state.playList

export const sequenceList = state => state.sequenceList

export const mode = state => state.mode

export const currentInIndex = state => state.currentIndex

// 因为currentSong可以根据index和list计算得到，所以不需要存储到state中
export const currentSong = (state) => {
  // console.log(state.playList,state.currentInIndex)
  return state.playList[state.currentIndex] || {}
}
export const disc = state => state.disc

export const topList = state => state.topList

export const searchHistory = state => state.searchHistory

export const playHistory = state => state.playHistory

export const favoriteList = state => state.favoriteList
